<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>Hello MUI</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">

		<link rel="stylesheet" href="../../css/mui.min.css">
		<style>
			.parallax-banner img {
				width: 100%;
			}
			.parallax-banner {
				position: relative;
				background-position: center;
				background-size: cover;
				background-repeat: no-repeat;
			}
		</style>
	</head>

	<body>
		<div id="scroll" class="mui-content mui-scroll-wrapper">
			<div class="mui-scroll">
				<div id="parallax" class="parallax-banner">
					<img src="../../images/default-img.png" />
				</div>
				<div style="margin-bottom: 1000px;">
					<p>这是视差滚动的示例，向下拖拽本页面，你会看到上方图片逐渐变大；</p>
				</div>
			</div>
		</div>
		<script type="text/javascript" src="../../js/mui.min.js"></script>
		<script>
			mui.init();
			mui('#scroll').scroll({
				parallaxElement: '#parallax',
				parallaxRatio: 0.5
			});
		</script>
	</body>

</html>